home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / mh / mh-6.8 / h / mhn.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-12-14  |  1.3 KB  |  70 lines

  1. /* mhn.h - definitions for mhn & friends */
  2. /* @(#)$Id: mhn.h,v 1.2 1992/10/16 17:13:19 jromine Exp $ */
  3.  
  4. #define    VRSN_FIELD    "MIME-Version"
  5. #define    VRSN_VALUE    "1.0"
  6.  
  7. #define    XXX_FIELD_PRF    "Content-"
  8.  
  9. #define    TYPE_FIELD    "Content-Type"
  10.  
  11. #define    ENCODING_FIELD    "Content-Transfer-Encoding"
  12.  
  13. #define    ID_FIELD    "Content-ID"
  14.  
  15. #define    DESCR_FIELD    "Content-Description"
  16.  
  17.  
  18. #define    isatom(c) \
  19.         (!isspace (c) \
  20.         && !iscntrl (c) \
  21.         && (c) != '(' \
  22.         && (c) != ')' \
  23.         && (c) != '<' \
  24.         && (c) != '>' \
  25.         && (c) != '@' \
  26.         && (c) != ',' \
  27.         && (c) != ';' \
  28.         && (c) != ':' \
  29.         && (c) != '\\' \
  30.         && (c) != '"' \
  31.         && (c) != '.' \
  32.         && (c) != '[' \
  33.         && (c) != ']')
  34.  
  35. #define    istoken(c) \
  36.         (!isspace (c) \
  37.         && !iscntrl (c) \
  38.         && (c) != '(' \
  39.         && (c) != ')' \
  40.         && (c) != '<' \
  41.         && (c) != '>' \
  42.         && (c) != '@' \
  43.         && (c) != ',' \
  44.         && (c) != ';' \
  45.         && (c) != ':' \
  46.         && (c) != '\\' \
  47.         && (c) != '"' \
  48.         && (c) != '/' \
  49.         && (c) != '[' \
  50.         && (c) != ']' \
  51.         && (c) != '?' \
  52.         && (c) != '=')
  53.  
  54. /* MTR: removed now, since likely to go away in the future
  55.         && (c) != '.' \
  56.  */
  57.  
  58. /*   */
  59.  
  60. #define    CPERLIN    76
  61. #define    BPERLIN    (CPERLIN / 4)
  62. #define    LPERMSG    632
  63. #define    CPERMSG    (LPERMSG * CPERLIN)
  64.  
  65. /*   */
  66.  
  67. #if    defined(BSD42) || defined(SOCKETS)
  68. #define    FTP
  69. #endif
  70.